package chaowan.pojo;

import jakarta.validation.constraints.*;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class OrderDetail {
    private Long detailId;

    private Long orderId;

    private Long goodsId;

    @Min(1)
    private Integer qty;

    @DecimalMin("0.01")
    private BigDecimal price;
}
